import requests
from config import RunConfig
'''
现场管理-技术交底
'''
def technical_disclosure_sidebar(para):
    '''
    技术交底侧边栏-钻探类
    '''
    response = requests.post(
        url=RunConfig.url + "/technical/disclosure/sidebar",
        headers=RunConfig.headers,
        json=para,
        verify=False
    )
    return response


def technical_disclosure_detail_edit(para):
    '''
    技术交底详情编辑
    :param para:
    :return:
    '''
    response = requests.post(
        url=RunConfig.url + "/technical/disclosure/detail/edit",
        headers=RunConfig.headers,
        json=para,
        verify=False
    )
    return response


def technical_disclosure_page(para):
    '''
    技术交底分页
    :param para:
    :return:
    '''
    response = requests.post(
        url=RunConfig.url + "/technical/disclosure/page?page=&perPage=",
        headers=RunConfig.headers,
        json=para,
        verify=False
    )
    return response


def technical_disclosure_sidebarMt(para):
    '''
    技术交底侧边栏-勘探类
    '''
    response = requests.post(
        url=RunConfig.url + "/technical/disclosure/sidebarMt",
        headers=RunConfig.headers,
        json=para,
        verify=False
    )
    return response


def technical_disclosure_personnel(para):
    '''
    技术交底详情
    :param para:
    :return:
    '''
    response = requests.get(
        url=RunConfig.url + "technical/disclosure/personnel?detailId=&exploitMain=&exploitMainId=&projectId=",
        headers=RunConfig.headers,
        verify=False
    )
    return response


def technical_disclosure_export(para):
    '''
    技术交底导出
    :param para:
    :return:
    '''
    response = requests.get(
        url=RunConfig.url + "technical/disclosure/export?detailId=&exploitMain=&exploitMainId=&projectId=",
        headers=RunConfig.headers,
        verify=False
    )
    return response
